package com.wyix.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author wangdx
 * @since 2025/8/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private int id;
    private String orderNo;
    private int userId;
    private int productId;
    private int quantity;
    private double totalAmount;
    private Date createTime;
    private String status;

    public Order(String orderNo, int userId, int productId, int quantity, double totalAmount) {
        this.orderNo = orderNo;
        this.userId = userId;
        this.productId = productId;
        this.quantity = quantity;
        this.totalAmount = totalAmount;
    }
}
